package behavior.visitor.wujiang;


/**
 * 宝物创建工厂
 */

public class Treasure {

    /**
     * 宝物名称
     */
    private String treasureName;

    /**
     * 宝物数值
     */
    private Numerical treasureValue;

    public String getTreasureName() {
        return treasureName;
    }

    public void setTreasureName(String treasureName) {
        this.treasureName = treasureName;
    }

    public Numerical getTreasureValue() {
        return treasureValue;
    }

    public void setTreasureValue(Numerical treasureValue) {
        this.treasureValue = treasureValue;
    }

    public Treasure(String treasureName, Numerical treasureValue) {
        this.treasureName = treasureName;
        this.treasureValue = treasureValue;
    }

    public  Treasure(){

    }

    @Override
    public String toString() {
        return "Treasure{" +
                "treasureName='" + treasureName + '\'' +
                ", treasureValue=" + treasureValue +
                '}';
    }
}
